package ${package}.entity.${moduleName};

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
<#if hasVersionColumn>
import com.baomidou.mybatisplus.annotations.Version;
</#if>
import com.baomidou.mybatisplus.enums.IdType;

<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * ${comments}
 * 
 * @author ${author}
 * @email ${email}
 * @date ${datetime}
 */
@Data
@TableName("${tableName}")
public class ${className}Entity implements Serializable {

    <#list columns as column>
    /**
    * ${column.comments}
    */
    <#if column.versionColumn >
    @Version
    </#if>
    <#if column.columnName == pk.columnName >
    @TableId(value="${(column.columnName)?upper_case}", type= IdType.AUTO)
    <#else>
    @TableField("${(column.columnName)?upper_case}")
    </#if>
    private ${column.attrType} ${column.attrname};
    </#list>

}
